﻿<%@ Page Title="mt queue" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="mt_service_log.aspx.cs" Inherits="Sami_SMS_CRM_UI.mt_service_log" MaintainScrollPositionOnPostback="true" %>

<%@ Register Src="UserControl/ucPaging.ascx" TagName="ucPaging" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CssContent" runat="server">
    <style type="text/css">
        .box-content p{margin:2px 0 0 5px;}
        .box-content p input, .box-content p select{margin-bottom: 5px; padding: 4px 6px;}
        .box-content p span{display: inline-block; width: 80px; padding-left: 10px;}
        .detail{color: #555555; text-decoration:none;}
        .detail:hover{text-decoration:underline;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=txtFrom.ClientID%>").datetimepicker()
            $("#<%=txtTo.ClientID%>").datetimepicker({
                hour: 23,
                minute: 59
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="box">
        <div class="box-title">
            Searching
        </div>
        <div class="box-content ui-widget-content">
            <p>
                <span>Subscriber</span>
                <asp:TextBox ID="txtSubscriber" runat="server" />
                <span>Status</span>
                <asp:TextBox ID="txtStatus" runat="server" />
            </p>
            <p>
                <span>Advertisment</span>
                <asp:DropDownList ID="ddlAdv" runat="server" style="width:220px;" />
                <span>Collection</span>
                <asp:DropDownList ID="ddlCollection" runat="server" style="width:220px;" />
            </p>
            <p>
                <span>From</span>
                <asp:TextBox ID="txtFrom" runat="server" />
                <span>To</span>
                <asp:TextBox ID="txtTo" runat="server" />
            </p>
            <p style="text-align:center">
                <asp:Button ID="btnSearching" runat="server" Text="Search" CssClass="ui-button" 
                    onclick="btnSearching_Click" />
            </p>
        </div>
    </div>
    <div class="box">
        <div class="box-title">
            <div class="fl">
                List of Mt queue
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="box-content">
            <div class="clearfix" style="height: 32px">
                <div class="fl">
                    Show
                    <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                        <asp:ListItem Value="5">5</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="50" Selected="True">50</asp:ListItem>
                        <asp:ListItem Value="100">100</asp:ListItem>
                        <asp:ListItem Value="150">150</asp:ListItem>
                        <asp:ListItem Value="200">200</asp:ListItem>
                    </asp:DropDownList> / 
                    <asp:Literal ID="ltrTotalRow" runat="server" Text="0" /> 
                    entries
                </div>
                <div class="fr">
                    <uc1:ucPaging ID="pagingtop" runat="server" />
                </div>
            </div>
            <div class="clearfix">
                <asp:GridView ID="rptTable" runat="server" AutoGenerateColumns="false" CssClass="table" Width="100%">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="45px" HeaderText="No">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <%#(Container.DataItemIndex + 1) + (pagingtop.CurrentPage - 1) * pagingtop.PageSize%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="date_time" DataField="date_time" ItemStyle-Width="145px" />
                        <asp:BoundField HeaderText="subs" DataField="subs" ItemStyle-Width="100px"/>
                        <asp:BoundField HeaderText="dest_addr" DataField="dest_addr" ItemStyle-Width="100px" />
                        <asp:BoundField HeaderText="vasp_num" DataField="vasp_num" ItemStyle-Width="80px" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="msg" DataField="msg" />
                        <asp:BoundField HeaderText="status" DataField="status"/>
                    </Columns>
                </asp:GridView>
                <div class="fr">
                    <uc1:ucPaging ID="pagingbottom" runat="server" />
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" id="formId" value="mt_service_log" />
</asp:Content>
